import { Button, Loading, Message, MessageBox } from "element-ui";

export default function elementUi(Vue) {
  //注册element ui组件

  Vue.use(Button);
  Vue.use(Loading);

  Vue.prototype.$message = Message;
  Vue.prototype.$alert = MessageBox.alert;
  Vue.prototype.$msgbox = MessageBox;
  // Vue.component("Button", Button);
  // console.log(Button, Button.name);
}
